<!doctype html>
<html lang="{{ app()->getLocale() }}">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>广西北港新材料有限公司</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.0.0/css/bootstrap.min.css">
    <!-- Fonts -->
    <link href="/home.ico" rel="shortcut icon">
    <!-- Styles -->
    <style>
        html,
        body {
            background-color: #03b2fe;
            background-image: url('{{ asset('images/bg_cd.jpg') }}');
            background-size: 100% 100%;
            -moz-background-size: 100% 100%;
            height: 100vh;
            margin: 0;
            position: relative;
        }

        .content {
            position: absolute;
            top: 50%;
            margin-top: -250px;
            width: 1080px;
            height: 500px;
            left: 50%;
            margin-left: -540px;
            /*border: 1px solid white;*/
            border-radius: 3px;
            background: rgba(0, 0, 0, .5);
            display: flex;
        }

        .content .left {
            width: 60%;
            height: 100%;
            color: white;
            font-weight: bold;
            font-size: 20px;
            padding: 20px;
        }

        .company {
            font-weight: bold;
            font-size: 40px;
            margin-bottom: 30px;
        }

        .content .right {
            padding-top: 20px;
            background-color: rgba(255, 255, 255, .95);
            border-radius: 0 3px 3px 0;
            color: #2977dc;
            width: 40%;
        }

        .form-content {
            width: 80%;
            margin: 20px auto;
        }

        .form-content .form-item {
            margin-bottom: 20px;
        }

        .form-content .form-item input {
            width: 100%;
            height: 40px;
            border-radius: 3px;
            border: 1px solid #ccc;
            padding: 0 10px;
        }
    </style>
</head>

<body>
    <div class="content">
        <div class="left">
            <div class="company">
                广西北港新材料有限公司
            </div>
            <div class="system">
                宿舍管理系统
            </div>
        </div>
        <div class="right">
            <div class="form-content">
                <form class="form-horizontal" method="POST" action="{{ route('login') }}">
                    {{ csrf_field() }}
                    <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                        <label for="email" class="col-md-4 control-label">邮箱</label>
                        <div class="col-md-12">
                            <input id="email" type="email" class="form-control" name="email"
                                value="{{ old('email') }}" required autofocus>
                            @if ($errors->has('email'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('email') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>

                    <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                        <label for="password" class="col-md-4 control-label">密码</label>

                        <div class="col-md-12">
                            <input id="password" type="password" class="form-control" name="password" required>

                            @if ($errors->has('password'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('password') }}</strong>
                                </span>
                            @endif
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-4">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> 记住我
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-8 col-md-offset-4">
                            <button type="submit" class="btn btn-primary">
                                登录
                            </button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="panel-footer">
                @if ($errors)
                    <div class="form-group has-error">
                        <span class="help-block">{{ $errors->first() }}
                        </span>
                    </div>
                @endif
            </div>
        </div>
    </div>
</body>

</html>
